inspector: Make all statistics columns visible always
authorBenjamin Otte <otte@redhat.com>
Mon, 13 Oct 2014 08:19:34 +0000 (10:19 +0200)
committerBenjamin Otte <otte@redhat.com>
Tue, 14 Oct 2014 12:03:06 +0000 (14:03 +0200)
gtk/inspector/statistics.c
gtk/inspector/statistics.ui

index f6f04a30f822db9266ede5a52a9cf23d9c58aaca..4e9570c3e49694bd69b10fd72f01b1be87183858 100644 (file)
@@ -40,7 +40,6 @@ struct _GtkInspectorStatisticsPrivate
   GtkCellRenderer *renderer_self2;
   GtkTreeViewColumn *column_cumulative2;
   GtkCellRenderer *renderer_cumulative2;
-  gint snapshot_count;
   GHashTable *counts;
 };
 
@@ -125,17 +124,6 @@ refresh_clicked (GtkWidget *button, GtkInspectorStatistics *sl)
   TypeData *data;
   GtkTreeIter treeiter;
 
-  if (sl->priv->snapshot_count == 0)
-    {
-      gtk_tree_view_column_set_visible (sl->priv->column_self2, TRUE);
-      gtk_tree_view_column_set_visible (sl->priv->column_cumulative2, TRUE);
-    }
-  else if (sl->priv->snapshot_count == 1)
-    {
-      gtk_tree_view_column_set_visible (sl->priv->column_self1, TRUE);
-      gtk_tree_view_column_set_visible (sl->priv->column_cumulative1, TRUE);
-    }
-
   update_type_counts (sl);
 
   gtk_list_store_clear (GTK_LIST_STORE (sl->priv->model));
@@ -153,8 +141,6 @@ refresh_clicked (GtkWidget *button, GtkInspectorStatistics *sl)
                           COLUMN_CUMULATIVE2, data->cumulative2,
                           -1);
     }
-
-  sl->priv->snapshot_count++;
 }
 
 static gboolean
index 3066d938879a7bf51e94607fe1603a86ece4a33b..8a97856a6ff0a6cba53f06ea3e4f416185830ca6 100644 (file)
@@ -62,7 +62,7 @@
                     </child>
                     <child>
                       <object class="GtkTreeViewColumn" id="column_self1">
-                        <property name="visible">False</property>
+                        <property name="visible">True</property>
                         <property name="sort-column-id">2</property>
                         <property name="title" translatable="yes">Self 1</property>
                         <child>
@@ -74,7 +74,7 @@
                     </child>
                     <child>
                       <object class="GtkTreeViewColumn" id="column_cumulative1">
-                        <property name="visible">False</property>
+                        <property name="visible">True</property>
                         <property name="sort-column-id">3</property>
                         <property name="title" translatable="yes">Cumulative 1</property>
                         <child>
@@ -86,7 +86,7 @@
                     </child>
                     <child>
                       <object class="GtkTreeViewColumn" id="column_self2">
-                        <property name="visible">False</property>
+                        <property name="visible">True</property>
                         <property name="sort-column-id">4</property>
                         <property name="title" translatable="yes">Self 2</property>
                         <child>
@@ -98,7 +98,7 @@
                     </child>
                     <child>
                       <object class="GtkTreeViewColumn" id="column_cumulative2">
-                        <property name="visible">False</property>
+                        <property name="visible">True</property>
                         <property name="sort-column-id">5</property>
                         <property name="title" translatable="yes">Cumulative 2</property>
                         <child>